package cn.qzit.panel;

import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;

/**
 * ClassName : cn.qzit.panel.MineState
 * Desc : 状态栏
 *
 * @author : LINPQ
 * @date : 2022/4/13 14:44
 */
public class MineState extends JPanel {
    JLabel countB,countS,countG;
    JLabel face;
    JLabel timeB,timeS,timeG;
    public MineState(){

        Border borderIn = BorderFactory.createLoweredBevelBorder();
        Border borderOut = BorderFactory.createEmptyBorder(5,10,10,10);
        Border border = BorderFactory.createCompoundBorder(borderOut,borderIn);
        this.setBorder(border);

        this.setLayout(new BorderLayout());
        this.setBackground(Color.pink);

        countB = new JLabel(new ImageIcon("./picture/d0.gif"));
        countS = new JLabel(new ImageIcon("./picture/d0.gif"));
        countG = new JLabel(new ImageIcon("./picture/d0.gif"));

        face = new JLabel(new ImageIcon("./picture/face0.gif"));

        timeB = new JLabel(new ImageIcon("./picture/d0.gif"));
        timeS = new JLabel(new ImageIcon("./picture/d0.gif"));
        timeG = new JLabel(new ImageIcon("./picture/d0.gif"));

        Box box = Box.createHorizontalBox();
        box.add(Box.createHorizontalStrut(5));
        box.add(countB);
        box.add(countS);
        box.add(countG);
        box.add(Box.createHorizontalGlue());
        box.add(face);
        box.add(Box.createHorizontalGlue());
        box.add(timeB);
        box.add(timeS);
        box.add(timeG);
        box.add(Box.createHorizontalStrut(5));
        this.add(box);
    }
}
